package com.yeebo.enums.admin;

/**
 * 系统用户状态枚举类
 */
public enum SysUserStatusEnums {
    NORMAL(1, "启用中"),
    FREEZE(2, "已冻结");

    private Integer status;
    private String desc;

    SysUserStatusEnums(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public static String getDescByStatus(Integer status) {
        for (SysUserStatusEnums enums : SysUserStatusEnums.values()) {
            if (enums.getStatus() == status) {
                return enums.getDesc();
            }
        }
        return "";
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
